import request from "@/utils/request";
export function insertUser(data) {
  return request({
    url: "/user/insert",
    method: "post",
    data: data
  });
}
export function updateUser(data) {
  return request({
    url: "/user/update",
    method: "post",
    data: data
  });
}
export function deleteUser(data) {
  return request({
    url: "/user/delete",
    method: "post",
    data: data
  });
}
export function deletesUser(data) {
  return request({
    url: "/user/deletes",
    method: "post",
    data: data
  });
}
export function enableUser(data) {
  return request({
    url: "/user/enable",
    method: "post",
    data: data
  });
}
export function enablesUser(data) {
  return request({
    url: "/user/enables",
    method: "post",
    data: data
  });
}
export function disableUser(data) {
  return request({
    url: "/user/disable",
    method: "post",
    data: data
  });
}
export function disablesUser(data) {
  return request({
    url: "/user/disables",
    method: "post",
    data: data
  });
}
export function viewUser(params) {
  return request({
    url: "/user/view",
    method: "get",
    params: params
  });
}
export function pageUser(params) {
  return request({
    url: "/user/page",
    method: "get",
    params: params
  });
}
export function searchUser(params) {
  return request({
    url: "/user/search",
    method: "get",
    params: params
  });
}
